using System;
using System.Collections.Generic;
using System.Text;
using Web.Core.Providers;
using System.Collections;

namespace Web.Core.Objects
{
    public class Roles
    {
        public static Role GetRole(int id, string name)
        {
            return DataProvider.GetInstance().GetRoles(id, name)[0] as Role;
        }

        public static ArrayList GetAllRoles()
        {
            return DataProvider.GetInstance().GetRoles(0, "");
        }
    }
}
